package com.itheima.mapper;

import com.itheima.dto.LogDto;
import com.itheima.pojo.OperateLog;
import com.itheima.vo.LogVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LogMapper {

    @Select("select o.*,e.name operateEmpName from operate_log o left join emp e on o.operate_emp_id=e.id order by operate_time desc ")
    List<LogVo> query(LogDto dto);

}
